package com.gitee.wsl.mathematics.matrix.mat3.ext


import com.gitee.wsl.mathematics.matrix.mat3.MutableMatrix3

/** Return the dot product of this matrix with a diagonal matrix, with the three arguments as the diagonal */
fun<T:Number> MutableMatrix3<T, *, *>.dotDiagonal(v0: T, v1: T, v2: T)=
     create(
        get(0, 0) * v0, get(1, 0) * v1, get(2, 0) * v2,
        get(0, 1) * v0, get(1, 1) * v1, get(2, 1) * v2,
        get(0, 2) * v0, get(1, 2) * v1, get(2, 2) * v2,
    )
